package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
//@ServletComponentScan
//public class DemoApplication extends SpringBootServletInitializer {
@MapperScan("com.example.demo.mapper.*")
@EnableAsync
public class DemoApplication  {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

//	@Override
//	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//		// 设置启动类,用于独立tomcat运行的入口
//		return builder.sources(DemoApplication.class);
//	}
}
